package com.hanamaki.oop.demo03;

public class ScoreCalc {
    Double Java;
    Double C;
    Double DB;
    Double Total;
    Double Avg;
    public ScoreCalc(){

    }

    public ScoreCalc(Double Java,Double C,Double DB){
        this.Java=Java;
        this.C=C;
        this.DB=DB;
        this.Total=Java+C+DB;
        this.Avg=Total/3;
    }

    @Override
    public String toString() {
        return "ScoreCalc{" +
                "Java=" + Java +
                ", C=" + C +
                ", DB=" + DB +
                ", Total=" + Total +
                ", Avg=" + Avg +
                '}';
    }
}
